package cn.itcast.dtx.seatademo.bank1.client.fallback;

import cn.itcast.dtx.seatademo.bank1.client.Bank2Client;
import org.springframework.stereotype.Component;

/**
 * 失败回调
 */
@Component
public class Bank2ClientFallback implements Bank2Client {

    @Override
    public String transfer(Double amount) {
        return "fallback";
    }
}
